﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SLExcel
{
    public partial class GridWindow : UserControl
    {
        public GridWindow()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            List<dynamic> dataSource = new List<dynamic>() { 
                new {Name="Ding"},
                new {Name="Ding1"},new {Name="Ding2"}
            };
            DataGrid1.ItemsSource = dataSource; 
        }
    }
}
